package com.woniuxy.factory.mapper;

import com.woniuxy.factory.dto.EquipmentDTO;
import com.woniuxy.factory.entity.Equipment;
import com.woniuxy.factory.entity.EquipmentType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface EquipmentMapper {
    List<Equipment> selectEquimentByCondition(@Param("equipment") Equipment equipment,@Param("index") int index,@Param("limit") int limit);

    Integer totalEquipmentByCondition(@Param("equipment") Equipment equipment);

    void updateEquipment(@Param("equipment")  Equipment equipment);

    void deletEquipmentById(int eid);

    void insertEquipment(Equipment equipment);

    String selectEquimentById(int eid);
}
